﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo05211
{
    enum Foodtype 
    {
        川菜,
        闽菜,
        粤菜,
        鲁菜
    }
    //炒菜机器人
    class CookRobot:Robot
    {
        private Foodtype foodtype;
        public Foodtype FoodType { get { return this.foodtype; }set { this.foodtype = value; } }
        public CookRobot(string name,Foodtype foodtype) : base(name) 
        {
            this.foodtype = foodtype;
        }

        public override void Working()
        {
            Console.WriteLine("我叫{0}，我会炒{1}！",base.Name,this.foodtype);
        }
    }
}
